﻿using System;
using System.Globalization;
using System.Threading;

using Holidays;

namespace HolidayTest {

	class Program {

		static void Main(String[] args) {
			Thread.CurrentThread.CurrentCulture = new CultureInfo("da-DK");

			// Easter Sunday 2012
			DateTime testDate = new DateTime(2012, 4, 1);
			Console.WriteLine(String.Format("{0} {1}", testDate, testDate.IsHoliday()));

			// Easter Sunday 1777
			testDate = new DateTime(1777, 3, 30);
			Console.WriteLine(String.Format("{0} {1}", testDate, testDate.IsHoliday()));

			// Easter Sunday 1961
			testDate = new DateTime(1961, 4, 2);
			Console.WriteLine(String.Format("{0} {1}", testDate, testDate.IsHoliday()));

			// Easter Sunday 2009
			testDate = new DateTime(2009, 4, 12);
			Console.WriteLine(String.Format("{0} {1}", testDate, testDate.IsHoliday()));

			// Just another Monday
			testDate = new DateTime(2012, 4, 2);
			Console.WriteLine(String.Format("{0} {1}", testDate, testDate.IsHoliday()));

			// New Year's day 2012
			testDate = new DateTime(2012, 1, 1);
			Console.WriteLine(String.Format("{0} {1}", testDate, testDate.IsHoliday()));

			testDate = new DateTime(2012, 11, 28);
			Console.WriteLine(String.Format("{0} {1}", testDate, testDate.IsHoliday()));

			Console.ReadLine();
		}
	}
}